import 'package:edu_assistant/generated/json/base/json_field.dart';
import 'package:edu_assistant/generated/json/media_data_entity.g.dart';
import 'dart:convert';
import 'package:edu_assistant/model/media_item_entity.dart';

@JsonSerializable()
class MediaDataEntity {
	int? total;
	List<MediaItemEntity>? rows;

	MediaDataEntity();

	factory MediaDataEntity.fromJson(Map<String, dynamic> json) => $MediaDataEntityFromJson(json);

	Map<String, dynamic> toJson() => $MediaDataEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
